using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class DMS052ManagerBase
    {
        public DMS052ManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity Insert(DMS052Entity obj)
        { 
            return (DMS052Entity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity Update(DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.Update(obj);             
        }
 
 
        public DMS052Entity Delete(DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByACTFLG (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ACTFLG 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByACTFLG (string ACTFLG )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ACTFLG = ACTFLG;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDDTM (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDDTM 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDDTM (DateTime CTDDTM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDDTM = CTDDTM;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDPGM (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDPGM 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDPGM (string CTDPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDPGM = CTDPGM;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDUSR (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDUSR 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDUSR (string CTDUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDUSR = CTDUSR;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDWKS (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CTDWKS 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByCTDWKS (string CTDWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDWKS = CTDWKS;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByDES_WH_CODE (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"DES_WH_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DES_WH_CODE 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByDES_WH_CODE (string DES_WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.DES_WH_CODE = DES_WH_CODE;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"DES_WH_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_DAT (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_DAT 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_DAT (string ISS_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_DAT = ISS_DAT;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_NO (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_NO 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_NO (string ISS_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_NO = ISS_NO;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_OPTR (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_OPTR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_OPTR 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_OPTR (string ISS_OPTR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_OPTR = ISS_OPTR;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_OPTR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_TIM (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_TIM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ISS_TIM 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByISS_TIM (string ISS_TIM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_TIM = ISS_TIM;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"ISS_TIM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByLSTMDF (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LSTMDF 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByLSTMDF (DateTime LSTMDF )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.LSTMDF = LSTMDF;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFPGM (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFPGM 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFPGM (string MDFPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFPGM = MDFPGM;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFUSR (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFUSR 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFUSR (string MDFUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFUSR = MDFUSR;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFWKS (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MDFWKS 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByMDFWKS (string MDFWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFWKS = MDFWKS;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRECEIPT_NO (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"RECEIPT_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RECEIPT_NO 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRECEIPT_NO (string RECEIPT_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RECEIPT_NO = RECEIPT_NO;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"RECEIPT_NO");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRES_CODE (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"RES_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RES_CODE 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRES_CODE (string RES_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RES_CODE = RES_CODE;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"RES_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRMRK1 (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"RMRK1");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RMRK1 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRMRK1 (string RMRK1 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK1 = RMRK1;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"RMRK1");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRMRK2 (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"RMRK2");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RMRK2 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByRMRK2 (string RMRK2 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK2 = RMRK2;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"RMRK2");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteBySTATUS (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"STATUS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STATUS 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteBySTATUS (string STATUS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STATUS = STATUS;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"STATUS");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteBySTOCK_OUT_DAT (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteBySTOCK_OUT_DAT (string STOCK_OUT_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByTYPE (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TYPE 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByTYPE (string TYPE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.TYPE = TYPE;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"TYPE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByWH_CODE (DMS052Entity obj)
        { 
            return (DMS052Entity)Adapter.DeleteByField(obj,"WH_CODE");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien WH_CODE 
        /// </summary>
        /// <returns>DMS052Entity</returns>
        public DMS052Entity DeleteByWH_CODE (string WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.WH_CODE = WH_CODE;  
            return (DMS052Entity)Adapter.DeleteByField(obj,"WH_CODE");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public DMS052Entity Select(DMS052Entity obj)
        { 
            return (DMS052Entity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS052Entity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(DMS052Entity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new DMS052Entity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new DMS052Entity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS052Entity> SelectAllLST()
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS052Entity()),new DMS052Entity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<DMS052Entity> SelectAllLST(SelectOptions option)
        { 
            return (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new DMS052Entity(),option),new DMS052Entity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByACTFLGLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByACTFLGLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ACTFLG",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByACTFLG (string ACTFLG, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ACTFLG = ACTFLG;  
            return Adapter.SelectByField(obj,"ACTFLG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByACTFLGLST (string ACTFLG )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ACTFLG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByACTFLGLST (string ACTFLG, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ACTFLG = ACTFLG;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ACTFLG",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDDTMLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDDTMLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDDTM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDDTM (DateTime CTDDTM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDDTM = CTDDTM;  
            return Adapter.SelectByField(obj,"CTDDTM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDDTMLST (DateTime CTDDTM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDDTM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDDTMLST (DateTime CTDDTM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDDTM = CTDDTM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDDTM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDPGMLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDPGMLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDPGM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDPGM (string CTDPGM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDPGM = CTDPGM;  
            return Adapter.SelectByField(obj,"CTDPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDPGMLST (string CTDPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDPGMLST (string CTDPGM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDPGM = CTDPGM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDPGM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDUSRLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDUSRLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDUSR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDUSR (string CTDUSR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDUSR = CTDUSR;  
            return Adapter.SelectByField(obj,"CTDUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDUSRLST (string CTDUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDUSRLST (string CTDUSR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDUSR = CTDUSR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDUSR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDWKSLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByCTDWKSLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CTDWKS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCTDWKS (string CTDWKS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDWKS = CTDWKS;  
            return Adapter.SelectByField(obj,"CTDWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDWKSLST (string CTDWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CTDWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByCTDWKSLST (string CTDWKS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.CTDWKS = CTDWKS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CTDWKS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDES_WH_CODE (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"DES_WH_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDES_WH_CODE (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DES_WH_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByDES_WH_CODELST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DES_WH_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByDES_WH_CODELST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DES_WH_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDES_WH_CODE (string DES_WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.DES_WH_CODE = DES_WH_CODE;  
            return Adapter.SelectByField(obj,"DES_WH_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDES_WH_CODE (string DES_WH_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.DES_WH_CODE = DES_WH_CODE;  
            return Adapter.SelectByField(obj,"DES_WH_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByDES_WH_CODELST (string DES_WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.DES_WH_CODE = DES_WH_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DES_WH_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DES_WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByDES_WH_CODELST (string DES_WH_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.DES_WH_CODE = DES_WH_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DES_WH_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_DAT (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"ISS_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_DAT (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ISS_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_DATLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_DAT"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_DATLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ISS_DAT",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_DAT (string ISS_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_DAT = ISS_DAT;  
            return Adapter.SelectByField(obj,"ISS_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_DAT (string ISS_DAT, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_DAT = ISS_DAT;  
            return Adapter.SelectByField(obj,"ISS_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_DATLST (string ISS_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_DAT = ISS_DAT;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_DAT"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_DATLST (string ISS_DAT, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_DAT = ISS_DAT;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_DAT",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_NO (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"ISS_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_NO (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ISS_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_NOLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_NO"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_NOLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ISS_NO",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_NO (string ISS_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_NO = ISS_NO;  
            return Adapter.SelectByField(obj,"ISS_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_NO (string ISS_NO, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_NO = ISS_NO;  
            return Adapter.SelectByField(obj,"ISS_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_NOLST (string ISS_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_NO = ISS_NO;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_NO"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_NOLST (string ISS_NO, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_NO = ISS_NO;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_NO",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_OPTR (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"ISS_OPTR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_OPTR (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ISS_OPTR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_OPTRLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_OPTR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_OPTRLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ISS_OPTR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_OPTR (string ISS_OPTR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_OPTR = ISS_OPTR;  
            return Adapter.SelectByField(obj,"ISS_OPTR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_OPTR (string ISS_OPTR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_OPTR = ISS_OPTR;  
            return Adapter.SelectByField(obj,"ISS_OPTR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_OPTRLST (string ISS_OPTR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_OPTR = ISS_OPTR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_OPTR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_OPTR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_OPTRLST (string ISS_OPTR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_OPTR = ISS_OPTR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_OPTR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_TIM (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"ISS_TIM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_TIM (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ISS_TIM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_TIMLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_TIM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByISS_TIMLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ISS_TIM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_TIM (string ISS_TIM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_TIM = ISS_TIM;  
            return Adapter.SelectByField(obj,"ISS_TIM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByISS_TIM (string ISS_TIM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_TIM = ISS_TIM;  
            return Adapter.SelectByField(obj,"ISS_TIM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_TIMLST (string ISS_TIM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_TIM = ISS_TIM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_TIM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ISS_TIM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByISS_TIMLST (string ISS_TIM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.ISS_TIM = ISS_TIM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ISS_TIM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByLSTMDFLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByLSTMDFLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LSTMDF",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLSTMDF (DateTime LSTMDF, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.LSTMDF = LSTMDF;  
            return Adapter.SelectByField(obj,"LSTMDF",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByLSTMDFLST (DateTime LSTMDF )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LSTMDF duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByLSTMDFLST (DateTime LSTMDF, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.LSTMDF = LSTMDF;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LSTMDF",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFPGMLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFPGMLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFPGM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFPGM (string MDFPGM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFPGM = MDFPGM;  
            return Adapter.SelectByField(obj,"MDFPGM",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFPGMLST (string MDFPGM )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFPGM duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFPGMLST (string MDFPGM, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFPGM = MDFPGM;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFPGM",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFUSRLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFUSRLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFUSR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFUSR (string MDFUSR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFUSR = MDFUSR;  
            return Adapter.SelectByField(obj,"MDFUSR",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFUSRLST (string MDFUSR )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFUSR duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFUSRLST (string MDFUSR, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFUSR = MDFUSR;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFUSR",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFWKSLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByMDFWKSLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MDFWKS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMDFWKS (string MDFWKS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFWKS = MDFWKS;  
            return Adapter.SelectByField(obj,"MDFWKS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFWKSLST (string MDFWKS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MDFWKS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByMDFWKSLST (string MDFWKS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.MDFWKS = MDFWKS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MDFWKS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRECEIPT_NO (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"RECEIPT_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRECEIPT_NO (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RECEIPT_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRECEIPT_NOLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RECEIPT_NO"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRECEIPT_NOLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RECEIPT_NO",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRECEIPT_NO (string RECEIPT_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RECEIPT_NO = RECEIPT_NO;  
            return Adapter.SelectByField(obj,"RECEIPT_NO");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRECEIPT_NO (string RECEIPT_NO, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RECEIPT_NO = RECEIPT_NO;  
            return Adapter.SelectByField(obj,"RECEIPT_NO",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRECEIPT_NOLST (string RECEIPT_NO )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RECEIPT_NO = RECEIPT_NO;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RECEIPT_NO"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RECEIPT_NO duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRECEIPT_NOLST (string RECEIPT_NO, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RECEIPT_NO = RECEIPT_NO;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RECEIPT_NO",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRES_CODE (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"RES_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRES_CODE (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RES_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRES_CODELST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RES_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRES_CODELST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RES_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRES_CODE (string RES_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RES_CODE = RES_CODE;  
            return Adapter.SelectByField(obj,"RES_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRES_CODE (string RES_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RES_CODE = RES_CODE;  
            return Adapter.SelectByField(obj,"RES_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRES_CODELST (string RES_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RES_CODE = RES_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RES_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RES_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRES_CODELST (string RES_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RES_CODE = RES_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RES_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK1 (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"RMRK1");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK1 (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RMRK1",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRMRK1LST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK1"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRMRK1LST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RMRK1",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK1 (string RMRK1 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK1 = RMRK1;  
            return Adapter.SelectByField(obj,"RMRK1");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK1 (string RMRK1, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK1 = RMRK1;  
            return Adapter.SelectByField(obj,"RMRK1",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRMRK1LST (string RMRK1 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK1 = RMRK1;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK1"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK1 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRMRK1LST (string RMRK1, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK1 = RMRK1;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK1",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK2 (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"RMRK2");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK2 (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RMRK2",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRMRK2LST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK2"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByRMRK2LST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RMRK2",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK2 (string RMRK2 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK2 = RMRK2;  
            return Adapter.SelectByField(obj,"RMRK2");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRMRK2 (string RMRK2, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK2 = RMRK2;  
            return Adapter.SelectByField(obj,"RMRK2",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRMRK2LST (string RMRK2 )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK2 = RMRK2;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK2"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RMRK2 duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByRMRK2LST (string RMRK2, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.RMRK2 = RMRK2;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RMRK2",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTATUS (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"STATUS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTATUS (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"STATUS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectBySTATUSLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STATUS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectBySTATUSLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"STATUS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTATUS (string STATUS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STATUS = STATUS;  
            return Adapter.SelectByField(obj,"STATUS");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTATUS (string STATUS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STATUS = STATUS;  
            return Adapter.SelectByField(obj,"STATUS",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectBySTATUSLST (string STATUS )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STATUS = STATUS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STATUS"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STATUS duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectBySTATUSLST (string STATUS, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STATUS = STATUS;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STATUS",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectBySTOCK_OUT_DATLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectBySTOCK_OUT_DATLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"STOCK_OUT_DAT",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (string STOCK_OUT_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySTOCK_OUT_DAT (string STOCK_OUT_DAT, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return Adapter.SelectByField(obj,"STOCK_OUT_DAT",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectBySTOCK_OUT_DATLST (string STOCK_OUT_DAT )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien STOCK_OUT_DAT duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectBySTOCK_OUT_DATLST (string STOCK_OUT_DAT, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.STOCK_OUT_DAT = STOCK_OUT_DAT;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"STOCK_OUT_DAT",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTYPE (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTYPE (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByTYPELST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TYPE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByTYPELST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TYPE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTYPE (string TYPE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.TYPE = TYPE;  
            return Adapter.SelectByField(obj,"TYPE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTYPE (string TYPE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.TYPE = TYPE;  
            return Adapter.SelectByField(obj,"TYPE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByTYPELST (string TYPE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.TYPE = TYPE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TYPE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TYPE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByTYPELST (string TYPE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.TYPE = TYPE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TYPE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWH_CODE (DMS052Entity obj)
        { 
            return Adapter.SelectByField(obj,"WH_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWH_CODE (DMS052Entity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"WH_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByWH_CODELST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"WH_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectByWH_CODELST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"WH_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWH_CODE (string WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.WH_CODE = WH_CODE;  
            return Adapter.SelectByField(obj,"WH_CODE");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByWH_CODE (string WH_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.WH_CODE = WH_CODE;  
            return Adapter.SelectByField(obj,"WH_CODE",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByWH_CODELST (string WH_CODE )
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.WH_CODE = WH_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"WH_CODE"),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien WH_CODE duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<DMS052Entity> SelectByWH_CODELST (string WH_CODE, SelectOptions option)
        { 
            DMS052Entity obj = new DMS052Entity();
            obj.WH_CODE = WH_CODE;  
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"WH_CODE",option),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectWithConditionLST (DMS052Entity obj)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new DMS052Entity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<DMS052Entity></returns>
        public List<DMS052Entity> SelectWithConditionLST (DMS052Entity obj,SelectOptions option)
        { 
            return  (List<DMS052Entity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new DMS052Entity());
        }

}
}
